package aicue1.services;

import aicue1.beans.Customer;
import aicue1.singletons.CustomersSingleton;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.Response;

@Path("/")
@Consumes({"application/json", "application/xml"})
@Produces({"application/json", "application/xml"})
public interface CustomerManagementServiceRest
{
    @GET
    @Path("/get/{id}")
    public Customer getCustomer(@PathParam("id") String id) throws WebApplicationException;

    @PUT
    @Path("/update/{id}")
    public Response updateCustomer(@PathParam("id") String id, Customer customer);

    @POST
    @Path("/customers")
    public Response addCustomer(Customer customer);

    @DELETE
    @Path("/delete/{id}/")
    public Response deleteCustomer(@PathParam("id") String id);
}